import requests, pprint

url = 'http://localhost/api/mgr/customers'
params = {
    'action': 'list_customer',
}

res = requests.get(url, params=params)
pprint.pprint(res.json(), sort_dicts=0)